﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog x-modal-dialog" style="width: 650px; margin-top: 100px;">
	<div class="modal-content">

		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">
				<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
			</button>
			<h4 class="modal-title">Session&nbsp;-&nbsp;Edit</h4>
		</div>

		<form class="form-horizontal ihg-form" role="form" method="POST" action="${ctx.host}/profile/reset-password" data-validate="true">

			<input type="hidden" name="_method" value="PATCH"></input>

			<div class="modal-body">

				<div class="form-group ihg-form-group">
					<label class="col-xs-4 control-label">Name</label>
					<div class="col-xs-6">
						<input type="text" class="form-control" name="name" value="${session.name }" data-validate="required" />
					</div>
				</div>

				<div class="form-group ihg-form-group">
					<label class="col-xs-4 control-label">Description</label>
					<div class="col-xs-6">
						<input type="text" class="form-control" name="description" value="${session.description }"/>
					</div>
				</div>

				<div class="form-group ihg-form-group">
					<label class="col-xs-4 control-label">Start Date</label>
					<div class="col-xs-6">
						<input type="text" class="form-control date" name="startDate" value="<fmt:formatDate value='${session.startDate}'/>"/>
					</div>
				</div>

				<div class="form-group ihg-form-group">
					<label class="col-xs-4 control-label">End Date</label>
					<div class="col-xs-6">
						<input type="text" class="form-control date" name="endDate" value="<fmt:formatDate value='${session.endDate}'/>"/>
					</div>
				</div>

			</div>

			<div class="modal-footer">
				<button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">Commit</button>
				<button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">Cancel</button>
			</div>
			
		</form>
		
	</div>

</div>